package com.example.imtoken.modules.user.create.backups.mnemonic

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.imtoken.databinding.ItemMnemonicWordBinding

class MnemonicWordsAdapter(layoutResId: Int) :
    BaseQuickAdapter<String, BaseDataBindingHolder<ItemMnemonicWordBinding>>(layoutResId) {

    override fun convert(holder: BaseDataBindingHolder<ItemMnemonicWordBinding>, item: String) {
        holder.dataBinding?.str = item
        holder.dataBinding?.number = holder.adapterPosition + 1
    }
}